using AutoMapper;
using GroupMeal.Foods;

namespace GroupMeal;

public class GroupMealApplicationAutoMapperProfile : Profile
{
    public GroupMealApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */

        CreateMap<FoodType, FoodTypeDto>()
            .ReverseMap();
        CreateMap<CreateFoodTypeDto, FoodType>()
            .ForMember(dest => dest.Id, opt => opt.Ignore());
    }
}
